package com.hjl.sr.remoting.adaptor;

import java.net.HttpURLConnection;

import com.hjl.sr.remoting.HttpClientBase;

public class JavaHttpClient implements HttpClientBase {

	private HttpURLConnection con;
	
	public JavaHttpClient(HttpURLConnection con) {
		super();
		this.con = con;
	}

	public void addRequestHeader(String name, String value) {
		con.addRequestProperty(name, value);
	}

	public String getRequestHeader(String name) {
		return con.getRequestProperty(name);
	}

}
